﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace IoTCM
{
    public class XmlHost : HostBase
    {
        public XmlHost(XmlSerializer serializer)
            : base(serializer)
        {
        }

        public override string Format
        {
            get { return "xml"; }

        }
        public override string MimeType
        {
            get { return "application/xml"; }
        }

        public override string GetSerializedNameValuePair(string name, object value)
        {
            return string.Format("<{0}>{1}</{0}>", name, value);
        }
    }

}
